package com.ddstation.onsitelaw.entity.auditentity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;


/**
 * mapping dt_health_data_outpatient_medical 健康数据 门诊病历（病历）
 *
 * @author luqinglong
 * @date 2020年9月22日
 */
@Data
@Table(name = "dt_health_data_outpatient_medical_for_public",schema = "hzsc_invs")
public class DtHealthDataOutpatientMedicalEntity {

    @Column(name = "id")
    private String id;

    @Column(name = "outer_medical_id")
    private String outerMedicalId;

    @Column(name = "institution_id")
    private String institutionId;

    @Column(name = "institution_name")
    private String institutionName;

    @Column(name = "child_id")
    private Integer childId;

    @Column(name = "doctor_id")
    private String doctorId;

    @Column(name = "visit_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String visitDate;//就诊日期

    @Column(name = "visit_type")
    private Integer visitType;//就诊类型 1:初诊 2:复诊

    @Column(name = "complain")
    private String complain;//主诉

    @Column(name = "temperature")
    private Float temperature;//体温

    @Column(name = "height")
    private Float height;//身高

    @Column(name = "weight")
    private Float weight;//体重

    @Column(name = "heart_rate")
    private Float heartRate;//心率

    @Column(name = "breath")
    private Float breath;//呼吸

    @Column(name = "systolic")
    private Float systolic;//收缩压

    @Column(name = "diastolic")
    private Float diastolic;//舒张压

    @Column(name = "other_physique")
    private String otherPhysique;//其他体格检查

    @Column(name = "diagnosis")
    private String diagnosis;//诊断

    @Column(name = "diagnosis_icd10")
    private String diagnosisIcd10;//诊断icd10

    @Column(name = "advice")
    private String advice;//医嘱

    @Column(name = "treatment_st")
    private Integer treatmentSt;//检查治疗项

    @Column(name = "west_prescription_st")
    private Integer westPrescriptionSt;//饮片处方

    @Column(name = "chinese_prescription_st")
    private Integer chinesePrescriptionSt;//成药处方

    @Column(name = "infusion_prescription_st")
    private Integer infusionPrescriptionSt;//输液处方

    @Column(name = "treatment_amout")
    private Float treatmentAmout;//检查治疗项 小计金额

    @Column(name = "west_prescription_amout")
    private Float westPrescriptionAmout;//成药处方 小计金额

    @Column(name = "chinese_prescription_amout")
    private Float chinesePrescriptionAmout;//饮片处方 小计金额

    @Column(name = "infusion_prescription_amout")
    private Float infusionPrescriptionAmout;//输液处方 小计金额

    @Column(name = "medical_serial_no")
    private String medicalSerialNo;//就诊流水号

    @Column(name = "status")
    private Integer status;

    @Column(name = "name")
    private String name;

    @Column(name = "age")
    private Integer age;

    @Column(name = "age_month")
    private Integer ageMonth;

    @Column(name = "gender")
    private Integer gender;

    @Column(name = "doctor_name")
    private String doctorName;

    @Column(name = "symptom")
    private String symptom;//现病史

    @Column(name = "allergy")
    private String allergy;//过敏史

    @Column(name = "genetic_disease")
    private String geneticDisease;//遗传疾病史

    @Column(name = "pasthistory")
    private String pastHistory;//遗传疾病史//既往史

    @Column(name = "tz")
    private String tz;//体征

    @Column(name = "pregnant")
    private Integer pregnantFlg;//是否妊娠期

    @Column(name = "suckling_period")
    private Integer lactatingFlg;//是否妊娠期

    @Column(name = "department")
    private String departmentName;//科室名称

    @Column(name = "update_tm")
    private Date updateTm;

    @Column(name = "qualification")
    private String qualification;//医师执业编号


    @Column(name = "yb_personal_no")
    private String ybPersonalNo;//个人编号

    @Column(name = "uid")
    private String uId;//患者userid


    @Column(name = "source_type")
    private String sourceType;

    @Column(name = "yb_type")
    private Integer ybType;


}